﻿<?xml version="1.0" encoding="utf-8" ?>
<!--?xml-stylesheet type="text/css" href="/Styles/rss.css" ?-->
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="feed.aspx.vb" ContentType = "text/xml" Inherits="WeightLossProject.feed"    %>
<%@ OutputCache Duration="3600" VaryByParam="None" %> 
    
    <form id="form1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="dsRss">
    <HeaderTemplate>
    
    <rss version="2.0">
      <channel>
        <title>Dennis Gaya's WeightlossProject Feeds</title>
        <description>Dennis Gaya's WeightlossProject Feeds</description>   
        <copyright>2013</copyright>  
    </HeaderTemplate>
    <ItemTemplate>
      <item>
        <name><%# Eval("Name")%></name>
        <age><%# Eval("Age")%></age>   
        <sex><%# Eval("Sex")%></sex>
        <image>
            <url><%# Eval("Picture")%></url>
        </image>
        <location><%# Eval("Location")%></location>
        <weight><%# Eval("Weight")%></weight>
        <height><%# Eval("Height")%></height>
        <email><%# Eval("emailAddress")%></email>
        <website><%# Eval("Website")%></website>
        <desc><%# Eval("Description")%></desc>

      </item>
    </ItemTemplate>
    <FooterTemplate>
      </channel>
    </rss>   
    </FooterTemplate>

    </asp:Repeater>
    <asp:SqlDataSource ID="dsRss" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Name], [Age], [Sex], [Picture], [Description], [Location], [Weight], [Height], [emailAddress], [Website] FROM [Profiles]">
    </asp:SqlDataSource>

</form>
